package com.njtoyo.taxi.admin.rest.wrapper.business.advertise;

import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseApp;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseLocation;
import com.njtoyo.taxi.admin.mapper.master.enums.MediaType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class AdvertiseAddWrapper {

    @ApiModelProperty(value = "运营区Id")
    private Long cantonId;

    @ApiModelProperty(value = "跳转方式:0:webredirect,1:inappredirect,2:view")
    private AdvertiseCategory category;

    @ApiModelProperty(value = "是否启用")
    @NotNull(message = "是否启用为空")
    private Boolean isActive;

    @ApiModelProperty(value = "广告位:0:startup,1:banner,2:index,3:other,4:online_paid")
    @NotNull(message = "广告位为空")
    private AdvertiseLocation location;

    @ApiModelProperty(value = "媒体图片")
    @NotNull(message = "媒体图片为空")
    private String mediaUrl;

    @ApiModelProperty(value = "跳转地址")
    private String pointTo;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序为空")
    private Integer sortBy;

    @ApiModelProperty(value = "广告标题")
    @NotNull(message = "广告标题为空")
    private String title;

    @ApiModelProperty(value = "是否一定区域内")
    @NotNull(message = "是否一定区域内不能为空")
    private Boolean specified_region;

    @ApiModelProperty(value = "平台")
    @NotNull(message = "平台不能为空")
    private AdvertiseApp app;


    @ApiModelProperty(value = "广告类型")
    @NotNull(message = "广告类型不能为空")
    private MediaType mediaType;
}
